package com.macro.mall.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
* 课程类型表(cur_course_type）
* @author gaodx
* @create 2020-08-11 22:37
**/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CurCourseType implements Serializable{

	private static final long serialVersionUID = 1L;

     /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer id;
     /**
     * 课程id
     */
    @ApiModelProperty(value = "课程id")
    private Integer sourceId;
     /**
     * 父节点
     */
    @ApiModelProperty(value = "父节点")
    private Integer parentId;
     /**
     * 祖先节点
     */
    @ApiModelProperty(value = "祖先节点")
    private String ancestors;
     /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称")
    private String typeName;
     /**
     * 类型描述
     */
    @ApiModelProperty(value = "类型描述")
    private String typeDesc;
     /**
     * 顺序
     */
    @ApiModelProperty(value = "顺序")
    private Integer sort;
     /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer status;
     /**
     * 分级图标
     */
    @ApiModelProperty(value = "分级图标")
    private String lvIcon;
     /**
     * 列表图标
     */
    @ApiModelProperty(value = "列表图标")
    private String listIcon;
     /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
     /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
     /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
     /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "等级")
    private String level;

    @ApiModelProperty(value = "1-生活服务 2-社区教育")
    private String busiCategory;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子集")
    private List<CurCourseType> subset;




}